﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace UMLDraw
{
    public partial class WorkPlaceSize : Form
    {
        public WorkPlaceSize()
        {
            InitializeComponent();
            numericUpDown1.Value = MainForm.WPlace.WorkPlaceWidht;
            numericUpDown2.Value = MainForm.WPlace.WorkPlaceHeight;
            this.Refresh();

        }

        private void button1_Click(object sender, EventArgs e)
        {
            MainForm.WPlace.WorkPlaceWidht = Convert.ToInt16(numericUpDown1.Value);
            MainForm.WPlace.WorkPlaceHeight = Convert.ToInt16(numericUpDown2.Value);
            this.Close();
        }
    }
}
